import {defHttp} from '/@/utils/http/axios';
import {message} from 'ant-design-vue';
let yewuApi = {
	bizOperatorsList: '/bizOperators/list?column=createTime&order=desc&pageNo=1&pageSize=100',
	bizChargeStationList: '/bizChargeStation/list?column=createTime&order=desc&pageNo=1&pageSize=100',
};
//充电桩充电统计
export const stakeChargingDetail= (params) => {
	return defHttp.get({url: '/stationMonitor/stakeChargingDetail', params});
};
//充电桩实时充电详情

export const stationMonitorstakeDetail= (params) => {
	return defHttp.get({url: '/stationMonitor/stakeDetail', params});
};
//充电桩实时曲线详情
export const stationMonitorsstakeCurve= (params) => {
	return defHttp.get({url: '/stationMonitor/stakeCurve', params});
};
//充电桩监测
export const stationMonitorstake= (params) => {
	return defHttp.get({url: '/stationMonitor/stake', params});
};
// 查询所有运行概览数据
export const getYunxingAll = (params) => {
	return defHttp.get({url: '/bizMonitor/getAll', params});
};

// 获取所有数据
export const getAll = (params) => {
	return defHttp.get({url: '/index/getAll', params});
};

// 获取所有数据 gps
export const getgps= (params) => {
	return defHttp.get({url: '/chargeMap/gps', params});
};


//根据条件查询充电站

export const chargeMapsearch= (params) => {
	return defHttp.get({url: '/chargeMap/search', params});
};
// 根据id获取站点详情
export const chargeMapgetStationById= (params) => {
	return defHttp.get({url: '/chargeMap/getStationById', params});
};
// 根据站点id获取统计信息
export const getStationAnalysis= (params) => {
	return defHttp.get({url: '/chargeMap/getStationAnalysis', params});
};
// 充电偏好
export const getchargePreference = (params) => {
	return defHttp.get({url: '/index/chargePreference', params});
};

/**
 * 预警趋势
 * @param params
 */
export const getchargingTimeAnalysis = (params) => {
	return defHttp.get({url: '/chargingOrder/chargingTimeAnalysis', params});
};
/**
 * 预警趋势
 * @param params
 */
export const getwarnCurve = (params) => {
	return defHttp.get({url: '/index/warnCurve', params});
};

/**
 * 充电趋势
 * @param params
 */
export const getchargeCurve = (params) => {
	return defHttp.get({url: '/index/chargeCurve', params});
};

/**
 * 实时充电订单
 * @param params
 */
export const getbcurrentOrder = () => {
	return defHttp.get({url: '/index/currentOrder'});
};

/**
 * 运营商查询列表
 * @param params
 */
export const getbizOperatorsList = () => {
	return defHttp.get({url: yewuApi.bizOperatorsList});
};
/**
 * 充电站查询列表
 * @param params
 */
export const getbizChargeStationList = () => {
	return defHttp.get({url: yewuApi.bizChargeStationList});
};
// 首页驾驶舱接口
/**
 * 接入资源概况
 * @param params
 */
export const getassetsCount = () => {
	return defHttp.get({url: '/index/assetsCount'});
};

/**
 * 城市充电站情况
 * @param params
 */
export const getassetsCity = () => {
	return defHttp.get({url: '/index/assetsCity'});
};
/**
 * 驾驶舱地图头部信息
 * @param params
 */
export const gettitleData = () => {
	return defHttp.get({url: '/index/titleData'});
};
/**
 * 安全预警防护统计
 * @param params
 */
export const getsafetyWarn = () => {
	return defHttp.get({url: '/index/safetyWarn'});
};
/**
 * 获取地图首页数据
 * @param params
 */
export const chargeMaptitle = () => {
	return defHttp.get({url: '/chargeMap/title'});
};

